/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.adv;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 静态广告Entity
 * @author 罗天文
 * @version 2018-05-10
 */
public class HkStaticAdv extends DataEntity<HkStaticAdv> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String imgSrc;		// 图片地址
	private String imgLinks;		// 图片链接
	private String imgNote;		// 图片说明
	private String imgRank;		// 图片序号
	private String model;		// 所属模块
	private String state;		// 状态
	private Date beginDate;		// 开始时间
	private Date endDate;		// 结束时间
	private String countryId;		// 国家
	private String provinceId;		// 省
	private String cityId;		// 市
	private HkAllAdv source;		// 广告
	private String vedioLength;		// 视频长度
	private String coverImgSrc;		// 封面图片
	private String coverImgWidth;		// 封面图片宽度
	private String coverImgHeight;		// 封面图片高度
	
	public HkStaticAdv() {
		super();
	}

	public HkStaticAdv(String id){
		super(id);
	}

	@Length(min=0, max=200, message="标题长度必须介于 0 和 200 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=200, message="图片地址长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=200, message="图片链接长度必须介于 0 和 200 之间")
	public String getImgLinks() {
		return imgLinks;
	}

	public void setImgLinks(String imgLinks) {
		this.imgLinks = imgLinks;
	}
	
	@Length(min=0, max=200, message="图片说明长度必须介于 0 和 200 之间")
	public String getImgNote() {
		return imgNote;
	}

	public void setImgNote(String imgNote) {
		this.imgNote = imgNote;
	}
	
	@Length(min=0, max=200, message="图片序号长度必须介于 0 和 200 之间")
	public String getImgRank() {
		return imgRank;
	}

	public void setImgRank(String imgRank) {
		this.imgRank = imgRank;
	}
	
	@Length(min=0, max=1, message="所属模块长度必须介于 0 和 1 之间")
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=32, message="国家长度必须介于 0 和 32 之间")
	public String getCountryId() {
		return countryId;
	}

	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}
	
	@Length(min=0, max=32, message="省长度必须介于 0 和 32 之间")
	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	
	@Length(min=0, max=32, message="市长度必须介于 0 和 32 之间")
	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	
	public HkAllAdv getSource() {
		return source;
	}

	public void setSource(HkAllAdv source) {
		this.source = source;
	}
	
	@Length(min=0, max=10, message="视频长度长度必须介于 0 和 10 之间")
	public String getVedioLength() {
		return vedioLength;
	}

	public void setVedioLength(String vedioLength) {
		this.vedioLength = vedioLength;
	}
	
	@Length(min=0, max=200, message="封面图片长度必须介于 0 和 200 之间")
	public String getCoverImgSrc() {
		return coverImgSrc;
	}

	public void setCoverImgSrc(String coverImgSrc) {
		this.coverImgSrc = coverImgSrc;
	}
	
	@Length(min=0, max=10, message="封面图片宽度长度必须介于 0 和 10 之间")
	public String getCoverImgWidth() {
		return coverImgWidth;
	}

	public void setCoverImgWidth(String coverImgWidth) {
		this.coverImgWidth = coverImgWidth;
	}
	
	@Length(min=0, max=10, message="封面图片高度长度必须介于 0 和 10 之间")
	public String getCoverImgHeight() {
		return coverImgHeight;
	}

	public void setCoverImgHeight(String coverImgHeight) {
		this.coverImgHeight = coverImgHeight;
	}
	
}